<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script src="node_modules/requirejs/require.js"></script>
<script>
    requirejs.config({
        baseUrl: 'js/',
        paths:{
            test1: 'test1',
            test2: 'test2'
        }
    })
    requirejs(['test1'], test1=>{
        test1.test1SayHello()
        test1.test2SayHello()
    })
</script>
</html>